package com.qmerak.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qmerak.dao.impl.OrgAchievementDao;
import com.qmerak.entity.OrgAchievementEntity;
import com.qmerak.entity.OrgEntity;
import com.qmerak.service.IOrgAchievementService;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-21
 * @project TUManager
 */
@Service
public class OrgAchievementServiceImpl implements IOrgAchievementService {
	@Autowired
	private OrgAchievementDao orgAchievementDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IOrgAchievementService#add(com.entity.OrgAchievementEntity)
	 */
	@Override
	public OrgAchievementEntity add(OrgAchievementEntity entity) {
		return orgAchievementDao.add(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IOrgAchievementService#update(com.entity.OrgAchievementEntity
	 * )
	 */
	@Override
	public void update(OrgAchievementEntity entity) {
		orgAchievementDao.update(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IOrgAchievementService#delete(com.entity.OrgAchievementEntity
	 * )
	 */
	@Override
	public void delete(OrgAchievementEntity entity) {
		orgAchievementDao.remove(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgAchievementService#achievementsOfOrg(com.entity.
	 * OrgAchievementEntity)
	 */
	@Override
	public List<OrgAchievementEntity> achievementsOfOrg(OrgEntity entity) {
		return orgAchievementDao.achievementsOfOrg(entity);
	}

}
